package com.xinqi.modules.course.chapter.controller.inner;

import com.xinqi.common.base.response.R;
import com.xinqi.modules.course.chapter.dto.client.CourseChapterClient;
import com.xinqi.modules.course.chapter.service.CourseChapterService;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RestController;


/**
 * 课程章节表内部控制层
 *
 * @author: system
 * @date: 2023/10/31
 */
@Hidden
@Primary
@RestController
@RequiredArgsConstructor
public class CourseChapterInnerController implements CourseChapterClient {
    private final CourseChapterService courseChapterService;

    @Override
    public R<String> selectName(Long chapterId) {
        return R.data(courseChapterService.selectName(chapterId),R.SUCCESS_MSG);
    }
}
